package com.xichen.service;

import com.xichen.entity.PageResult;
import com.xichen.entity.QueryPageBean;
import com.xichen.pojo.User;

import java.util.List;

/**
 * @author tang wei
 * @version 1.0
 * @date 2020/7/16 13:47
 */
public interface UserService {


    User findUserByLoginName(String loginName);

    PageResult findUserPage(QueryPageBean queryPageBean);

    void add(User user);

    User findUserById(Long id);

    User findUserByLoginNameAndNotEqualId(String loginName, Long id);

    void update(User user);

    void delete(Long id);
}
